home *** CD-ROM | disk | FTP | other *** search
/ Champak 128 / Vol 128 (Damaged).iso / games / fire_it_.swf / scripts / __Packages / #110.as < prev    next >
Encoding:
Text File  |  2011-03-26  |  679 b   |  24 lines

  1. class ┬º#110┬º
  2. {
  3.    static var ┬º#3┬º = false;
  4.    function ┬º#110┬º()
  5.    {
  6.    }
  7.    static function ┬º#365┬º(color)
  8.    {
  9.       if(color == undefined)
  10.       {
  11.          eval("#0").log("ColorUtil: passed undefined color to hexToRGB, returning black");
  12.          return [0,0,0];
  13.       }
  14.       var _loc3_ = color >> 16;
  15.       var _loc4_ = color >> 8 & 255;
  16.       var _loc2_ = color & 255;
  17.       if(eval("#110")["#3"])
  18.       {
  19.          eval("#0").log("ColorUtil: converting hex color 0x" + color.toString(16) + " to rgb color " + _loc3_ + "/255, " + _loc4_ + "/255, " + _loc2_ + "/255");
  20.       }
  21.       return {r:_loc3_ / 255,g:_loc4_ / 255,b:_loc2_ / 255};
  22.    }
  23. }
  24.